﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Radiation.Common;

namespace RadiationUI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            WindowManager.Init();
            AsyncAPI.Init();
            Logger.Init();
            Logger.Instance["error"].ItemAdded += new EventHandler<GenericEventArgs>(Program_ItemAdded);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

        static void Program_ItemAdded(object sender, GenericEventArgs e)
        {
            MessageBox.Show((string)e["message"]);
        }

    }
}
